#include  <cstdio>
#include  <cstring>

int main(int argc, char *argv[])
{
	char w[21];
	short t[21];
	while( scanf("%s",w) && strcmp(w,"end") != 0 )
	{
		bool ac = false;
		int len = strlen(w);
		for( int i = 0; i < len ; ++i )
		{
			if(w[i] == 'a' || w[i] == 'e' || w[i] == 'i' 
					|| w[i] == 'o' || w[i] == 'u')
			{
				t[i] = 1;
				ac = true;
			}
			else
				t[i] = 0;

		}

		if( ac )
		{
			for( int i = 0; i < len - 2 ; ++i )
			{
				if(t[i] == t[i+1] && t[i+1] == t[i+2])
				{
					ac = false;
					break;
				}
			}
			
		}

		if( ac )
		{
			for( int i = 0; i < len-1 ; ++i )
			{
				if( w[i] == w[i+1] && w[i] != 'e' && w[i] != 'o')
				{
					ac = false;
					break;
				}
			}
			
		}
		
		const char *p = ac ? " " : " not ";

		printf("<%s> is%sacceptable.\n",w,p);
	}
}
